from fastapi import APIRouter

from app.api.v1.endpoints import auth, users, roles, permissions, hot, dashboard, crawler, email, scrapyd, llm

api_router = APIRouter(prefix="/api/v1")

# 注册路由 - 按功能模块分类添加标签
api_router.include_router(auth.router, tags=["🔐 认证授权"])
api_router.include_router(users.router, tags=["👥 用户管理"])
api_router.include_router(roles.router, tags=["🎭 角色管理"])
api_router.include_router(permissions.router, tags=["🔑 权限管理"])
api_router.include_router(hot.router, tags=["🔥 热点数据"])
api_router.include_router(dashboard.router, prefix="/dashboard", tags=["📊 仪表盘"])
api_router.include_router(crawler.router, prefix="/crawler", tags=["🕷️ 爬虫任务"])
api_router.include_router(scrapyd.router, prefix="/scrapyd", tags=["🕸️ Scrapyd管理"])
api_router.include_router(email.router, tags=["📧 邮件系统"])
api_router.include_router(llm.router, prefix="/llm", tags=["🧠 LLM模型"])
